Repository navigation
Fix missing mark as manually exported option for QBO reports - #93174
roryabraham merged 6 commits into
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
The failing test is not related to this PR. |
|
@thesahindia Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bc4c471e97
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| sentryLabel: CONST.SENTRY_LABEL.MORE_MENU.EXPORT_FILE, | ||
| onSelected: () => { | ||
| if (!connectedIntegration || !moneyRequestReport) { | ||
| if (!connectedIntegrationFallback || !moneyRequestReport) { |
There was a problem hiding this comment.
Use the fallback integration for re-marking exports
When the connected accounting integration is unverified, this new fallback guard lets the Mark as exported option appear, but already-exported reports still take the isExported branch and call triggerExportOrConfirm. That hook still derives connectedIntegration via getValidConnectedIntegration and returns immediately when it is undefined, so for the newly supported invalid-QBO case selecting Mark as exported on an already-exported report silently does nothing instead of showing the confirmation/re-marking it.
Useful? React with 👍 / 👎.
|
@emkhalid, attach screen recordings for all platforms and mark off all items in the checklist. |
| const isExporter = isPreferredExporter(policy, currentUserLogin); | ||
|
|
||
| return (isAdmin && syncEnabled) || (isExporter && !syncEnabled); | ||
| return isAdmin || (isExporter && !syncEnabled); |
There was a problem hiding this comment.
“Mark as manually exported” should be visible to admins and preferred exporters regardless of whether auto-sync is on or off
|
@thesahindia Updated this to allow preferred exporters to see Mark as manually exported regardless of auto-sync, and added a focused unit test for that case. |
Reviewer Checklist
Screenshots/VideosAndroid: mWeb ChromeScreen.Recording.2026-06-15.at.2.32.03.PM.moviOS: HybridAppScreen.Recording.2026-06-15.at.1.38.28.PM.moviOS: mWeb SafariScreen.Recording.2026-06-15.at.1.41.12.PM.movMacOS: Chrome / SafariScreen.Recording.2026-06-15.at.1.35.21.PM.mov |
|
@emkhalid ESLint is failing - try merging main into this branch to see if that fixes it |
ESLint now passes locally for all four changed PR files, thanks. |
|
🚧 @roryabraham has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.4.9-0 🚀
Bundle Size Analysis (Sentry): |
|
🤖 I reviewed the changes in this PR against the help site files under WhyThis PR is a bug fix that restores the missing Mark as exported option on finished reports with an accounting connection. The behavioral changes in
What the docs already sayThe relevant help article — Expense and Report Actions — already documents Mark as exported in a way that matches the fixed behavior:
The docs describe availability by report state (Approved/Paid, where Paid covers reimbursed) and role (Admin, Exporter) with an accounting connection — and crucially, they never mention auto-sync as a gating condition. This PR brings the code in line with that documented behavior rather than changing it, so the published articles remain accurate. @emkhalid, this is an assessment that no docs PR is needed — there is no linked help site PR to review. If you believe the help site should explicitly call out the reimbursed-report or payer scenarios (which the articles currently fold into "Paid reports"), let me know and I'll draft the update. |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.4.9-0 🚀
|

Explanation of Change
This PR fixes the missing
Mark as manually exportedoption for finished expense reports with an accounting connection.For manual export marking, we now check for an existing accounting connection instead of requiring a valid live-export connection. The finished report check also includes reimbursed reports, and admins can mark finished reports as manually exported regardless of auto-sync state. The manual mark action now uses the existing connected integration fallback.
Fixed Issues
$ #91086
PROPOSAL: #91086 (comment)
Tests
More > ExportMark as manually exportedappearsMark as manually exportedappearsOffline tests
N/A. This change only updates the existing manual export option visibility and action integration value.
QA Steps
Same as Tests.
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android-native-export-fix.mov
Android: mWeb Chrome
android-web-export-fix.mov
iOS: Native
ios-native-export-fix.mov
iOS: mWeb Safari
ios-web-export-fix.mov
MacOS: Chrome / Safari
macos-export-manual-fix.mov